#!/usr/bin/env python
# coding: utf-8

# 请编写一个程序，打印`lst`中元素的所有排列。  
# 
# 输入：`lst = [1,2,3]`
# 
# 预期输出：`[(1, 2, 3), (1, 3, 2), (2, 1, 3), (2, 3, 1), (3, 1, 2), (3, 2, 1)]`

# In[1]:


import itertools
lst = [1,2,3]
print(list(itertools.permutations(lst)))

